<?php

// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');

$config = require(__DIR__ . '/../config/web.php');
//加入版本号 RELEASE_VERSION
if(file_exists("/www/wwwroot/book.51pcjq.com/release_version/version_book")){
    define("RELEASE_VERSION",trim(file_get_contents("/www/wwwroot/book.51pcjq.com/release_version/version_book")));
}else{
    define("RELEASE_VERSION",time());
    }
//var_dump(RELEASE_VERSION);EXIT();
(new yii\web\Application($config))->run();